#include<stdio.h>
int main()
{
    int n,sum=0,a[1000000];
    float average ,max=0,min=0;
    scanf("%d",&n);
    for(int i = 0;i<n;i++)
    {
        scanf("%d",&a[i]);
        sum=sum+a[i];
    }
    average=(float)sum/n;
    printf("average = %.2f\n",average);
    max=a[0];min=a[0];
    for(int i = 0;i<n;i++)
    {
        if(max<=a[i])
        {
            max=a[i];
        }
        if(min>=a[i])
        {
            min=a[i];
        }
    }
	printf("max = %.2f\nmin = %.2f",max,min);
    return 0;
    
}
